/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonLongListener extends JsonAbstractListener<Long> {

    private static final JsonLongListener instance = new JsonLongListener();

    private JsonLongListener() {
    }

    public static JsonLongListener getInstance() {
        return instance;
    }

    @Override
    public void convertTo(JsonWriter out, Long value) {
        convertLongTo(out, value);
    }

    @Override
    public final Long convertFrom(final JsonReader in) {
        return convertLongFrom(in);
    }

    @Override
    public Class<Long> getType() {
        return Long.class;
    }
}
